package org.bmind.datasword.config.dto;

import java.util.ArrayList;
import java.util.Collection;

import javax.xml.bind.annotation.XmlAttribute;

/**
 * 
 * @author valerio
 *
 */
public abstract class DObjIdentity {
	
	private Collection<String> roles = new ArrayList<String>();
	private Collection<String> areas = new ArrayList<String>();
	
	private int ID = 0;
	private String version = null;
	private int previusId = 0;
	private int nextId = 0;
	private String name = null;
	
	public DObjIdentity() {	}
	
	
	public String getName() {return name;}
	public void setName(String name) {this.name = name;}

	@XmlAttribute
	public int getID() {return ID;}
	public void setID(int iD) {ID = iD;}

	@XmlAttribute
	public String getVersion() {return version;}
	public void setVersion(String version) {this.version = version;}

	@XmlAttribute
	public int getPreviusId() {return previusId;}
	public void setPreviusId(int previusId) {this.previusId = previusId;}

	@XmlAttribute
	public int getNextId() {return nextId;}
	public void setNextId(int nextId) {this.nextId = nextId;}

	public Collection<String> getRoles() {return roles;}
	public void setRoles(Collection<String> roles) {this.roles = roles;}


	public Collection<String> getAreas() {return areas;}
	public void setAreas(Collection<String> areas) {this.areas = areas;}
	

	
}
